class CompaniesController < ApplicationController
    
  
  def new
    @company = Company.new 
    render :layout => "frontends"
  end
  
  def create
    @company = Company.new(params[:company])
    if @company.save
      flash[:notice] = "You signed up successfully"
      flash[:color]= "valid"
    else
      flash[:notice] = "Form is invalid"
      flash[:color]= "invalid"
    end
    render "new",:layout => "frontends"
  end
end
